package com.orifine.orm;

import com.orifine.orm.information.DefaultInfo;
import com.orifine.orm.model.ColumnModel;


public abstract class Type{
	public String getScriptType(ColumnModel columnMapper){
		return "not null";
	}
	
	public String getScriptValue(ColumnModel columnMapper){
		return null;
	}
	
	public Information getDefaultInfo(ColumnModel columnMapper){
		return new DefaultInfo();
	}
	
	public String filterQuote(String scriptValue){
		return "'"+scriptValue.replaceAll("'", "''").replaceAll("\\\\", "\\\\\\\\")+"'";
	}
}
